package com.shangfu.zuke

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.shangfu.zuke.databinding.ActivityMainBinding
import com.zhengdongzulin.zuke.app.login.LoginActivity
import com.zhengdongzulin.zuke.app.work.activity.ZKServiceEntranceActivity
import com.zhengdongzulin.zuke.ext.start

class MainActivity : AppCompatActivity() {
    private lateinit var binding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
        binding.fab.setOnClickListener {
            jump()
        }
        jump()
    }

    fun jump() {
        Intent().putExtra("intentLaunchType", 14)
            .putExtra("token", "AT-12b38154608f4ff6a4ed36f6f467ce4c")
            .start(LoginActivity::class.java)

//        Intent().putExtra("intentLaunchType", 13)
//            .putExtra("token", "AT-cb358cba98a94d24a3c3b81d7439c410")
//            .start(ZKServiceEntranceActivity::class.java)
    }
}